package com.example.yoga.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author liwenkai
 * @since 2021-02-01
 */
@TableName("user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户表id
     */
    //@Excel(name = "编号",width = 25,orderNum = "0")
    @TableId(value = "userId", type = IdType.AUTO)
    private Integer userid;

    /**
     * 用户名
     */
    @Excel(name = "用户名",width = 25,orderNum = "0")
    @TableField("userName")
    private String username;

    /**
     * 密码
     */
//    @Excel(name = "密码",width = 25,orderNum = "1")
    @TableField("userPassword")
    private String userpassword;

    /**
     * 性别
     */
    @Excel(name = "性别",width = 25,orderNum = "1")
    @TableField("userSex")
    private String usersex;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话",width = 25,orderNum = "2")
    @TableField("userTel")
    private String usertel;

    /**
     * 电子邮箱
     */
    @Excel(name = "电子邮箱",width = 25,orderNum = "3")
    @TableField("userEmail")
    private String useremail;

    /**
     * 用户角色表
     */
   // @Excel(name = "用户角色",width = 25,orderNum = "6")
    @TableField("roleId")
    private Integer roleid;

    /**
     * 执行操作的人
     */
   // @Excel(name = "操作人",width = 25,orderNum = "7")
    @TableField("operatorId")
    private Integer operatorid;

    /**
     * 是否删除
     */
   // @Excel(name = "是否删除",width = 25,orderNum = "8")
    @TableField("Is_del")
    private Integer isDel;


    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpassword() {
        return userpassword;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword;
    }

    public String getUsersex() {
        return usersex;
    }

    public void setUsersex(String usersex) {
        this.usersex = usersex;
    }

    public String getUsertel() {
        return usertel;
    }

    public void setUsertel(String usertel) {
        this.usertel = usertel;
    }

    public String getUseremail() {
        return useremail;
    }

    public void setUseremail(String useremail) {
        this.useremail = useremail;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getOperatorid() {
        return operatorid;
    }

    public void setOperatorid(Integer operatorid) {
        this.operatorid = operatorid;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    protected Serializable pkVal() {
        return this.userid;
    }

    @Override
    public String toString() {
        return "User{" +
        "userid=" + userid +
        ", username=" + username +
        ", userpassword=" + userpassword +
        ", usersex=" + usersex +
        ", usertel=" + usertel +
        ", useremail=" + useremail +
        ", roleid=" + roleid +
        ", operatorid=" + operatorid +
        ", isDel=" + isDel +
        "}";
    }
}
